@layout("/common/_container.html"){
<style>
	.input-group{
		/*width:45%;*/
	}
	.row input[type=text],.form-control, .single-line{
	    width:35%;
        float:left;
    }
    .error{
        color:red;
        float:left;
        padding-top: 7px;
        padding-left: 10px;
    }
    .isShow label{
        padding-right:10px;
        padding-top:3px;
    }
	.input-group{
		width:60%;
		margin:0 auto;
	}
	.row input[type=text]{
	width:45%; 
    }
    .error{
        color:red;
    }
</style>
<div class="ibox float-e-margins">
    <div class="ibox-content">
        <div class="form-horizontal">

            <input type="hidden" id="id" value="">

            <div class="row">
                            <#input id="friendlinkName" name="名称" underline="true"/>
                            <#input id="friendlinkUrl" name="网址"  placeholder="必须http://或者https://开头"/>
                            <!-- <input type="button" onclick="checkIP()" value="验证">    -->
                            <#input id="friendlinkSort" name="排序号" underline="true"/>
            </div>

            <div class="row btn-group-m-t">
                <div class="col-sm-10" style="text-align:center;">
                    <#button btnCss="info" name="提交" id="ensure" icon="fa-check" clickFun="SktFriendlinksInfoDlg.addSubmit()"/>
                    <#button btnCss="danger" name="取消" id="cancel" icon="fa-eraser" clickFun="SktFriendlinksInfoDlg.close()"/>
                </div>
            </div>
        </div>

    </div>
</div>
<!-- <script language="javascript">  
function checkIP()  
{  
  obj = document.getElementById("friendlinkUrl").value;  
//ip地址  
var exp=/^([hH][tT]{2}[pP]:\/\/|[hH][tT]{2}[pP][sS]:\/\/)(([A-Za-z0-9-~]+)\.)+([A-Za-z0-9-~\/])+$/;  
var reg = obj.match(exp);  
if(reg==null)  
{  
alert("IP地址不合法！");  
}  
else  
{  
alert("IP地址合法！");  
}  
}  
</script> -->
<script src="${ctxPath}/static/modular/huamao/sktFriendlinks/sktFriendlinks_info.js"></script>
@}
